package com.catmiw.funds.domain;

import java.util.Date;

import com.catmiw.funds.tool.DateTool;

public class Value {
	public boolean equals(Object o){
		if (o==null||!(o instanceof Value))
			return false;
		Value v=(Value)o;
		return date.equals(v.getDate())&&code.equals(v.getCode());
	}
	
	private String code;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	private Date date;
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	private double showvalue;
	public double getShowvalue() {
		return showvalue;
	}
	public void setShowvalue(double showvalue) {
		this.showvalue = showvalue;
	}
	private double truevalue;
	public double getTruevalue() {
		return truevalue;
	}
	private double increasedrop;
	
	public double getIncreasedrop() {
		return increasedrop;
	}
	public void setIncreasedrop(double increasedrop) {
		this.increasedrop = increasedrop;
	}
	public void setTruevalue(double truevalue) {
		this.truevalue = truevalue;
	}
	public String toString(){
		return "["+DateTool.dateToString(date,"yyyy-MM-dd")+","+showvalue+"]";
	}
}
